/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

/**
 *
 * @author kuksenok
 */
public class Method {

    private String method;
    private int id;

    public Method(String name) {
        if (name.length() > 40) {
            this.method = name.substring(0, 40);
        } else {
            this.method = name;
        }
        //TODO: db method find
        this.id = 0;
    }

    public Method(){
        this.id  = -1;
    }


    @Override
    public String toString(){
        return id<0?"":"methodid="+id;
    }

    public boolean include(){
        return id>=0;
    }
}
